package com.cookor.poi.modules.phy.entity;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.modules.tenant.entity.TTenant;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

public class TRank extends DataEntity<TRank> {
  private static final long serialVersionUID = 1L;
  
  private Integer tenantId;
  
  private String rankName;
  
  private TTenant tenant;
  
  private String tenantName;
  
  public TRank() {}
  
  public TRank(String id) {
    super(id);
  }
  
  @NotNull(message = "租户id不能为空")
  public Integer getTenantId() {
    return this.tenantId;
  }
  
  public void setTenantId(Integer tenantId) {
    this.tenantId = tenantId;
  }
  
  @Length(min = 0, max = 64, message = "职称名称长度必须介于 0 和 64 之间")
  public String getRankName() {
    return this.rankName;
  }
  
  public void setRankName(String rankName) {
    this.rankName = rankName;
  }
  
  public TTenant getTenant() {
    return this.tenant;
  }
  
  public void setTenant(TTenant tenant) {
    this.tenant = tenant;
  }
  
  public String getTenantName() {
    return this.tenantName;
  }
  
  public void setTenantName(String tenantName) {
    this.tenantName = tenantName;
  }
}
